package com.vcit.system.domain.term;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.vcit.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vcit.common.annotation.Excel;

/**
 * 学期对象 t_term
 * 
 * @author dff
 * @date 2025-01-07
 */
public class Term extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学期id */
    private Long id;

    /** 学期名称 */
    @Excel(name = "学期名称")
    private String termName;

    /** 学期名缩写 */
    @Excel(name = "学期名缩写")
    private String termMark;

    /** 学期开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "学期开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 学期结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "学期结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTermName(String termName)
    {
        this.termName = termName;
    }

    public String getTermName()
    {
        return termName;
    }
    public void setTermMark(String termMark)
    {
        this.termMark = termMark;
    }

    public String getTermMark()
    {
        return termMark;
    }
    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }
    public void setEndDate(Date endDate)
    {
        this.endDate = endDate;
    }

    public Date getEndDate()
    {
        return endDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("termName", getTermName())
                .append("termMark", getTermMark())
                .append("startDate", getStartDate())
                .append("endDate", getEndDate())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
